package cn.tedu.tmall.admin.mall.service;

import cn.tedu.tmall.admin.mall.pojo.param.MallCategoryAddParam;
import cn.tedu.tmall.admin.mall.pojo.vo.MallCategoryTreeVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IMallCategoryService {

    @Transactional
    void addCategory(MallCategoryAddParam param);

    List<MallCategoryTreeVO> treeCategory();

    List<MallCategoryTreeVO> treeTopCategory();

    List<MallCategoryTreeVO> treeChildrenCategory(Long parentId);
}
